<include path="header" /> 
	<div class="m-title">
    	<ul>
        	<li><a href="/work/index">工作</a></li>
            <li><a href="/work/todo">待办</a></li>
            <li><a href="/work/work">任务</a></li>
            <li class="right"><a href="/work/index">返回 工作</a></li>
            <li></li>
        </ul>
    </div>
    <div class="box top-desc ">
    	<ul>
        	<li><h1><?=$datas['subject']?></h1></li>
            <li><? if($datas['end_date']>0){ ?>截至日期：<?=$datas['end_date']?><? }?></li>
            <? if($datas['state'] == 0){ if($datas['mk_user_id'] == $user['user_id']){ ?><li>当前进度： <input type="text" class="percent-num" value="<?=$datas['finish_percent']?>" maxlength="2" />%&nbsp;&nbsp;<a href="javascript:void(0);" onclick="edit_percent(<?=$datas['work_id']?>, $(this).prev('.percent-num').val());">修改进度</a></li>
            <? }else{ ?>
            <li>当前进度： <?=$datas['finish_percent']?>%</li>
            <? }}else{ ?>
            <li>当前进度： <? if($datas['state'] == 1){ ?>已完成<? }else{ ?>已关闭<? }?></li>
            <? }?> 
        	<li><div class="workdesc">
            	<?=$datas['message']?>
            </div></li>
	        <li>
              <? if($datas['state'] == 0){ if($datas['mk_user_id'] == $user['user_id']){ ?>
                  <input type="button" value="关闭该任务" class="button" onClick="go_to('/work/closework?id=<?=$datas['work_id']?>');" />
              <? } if($datas['user_id']==$user['user_id']){ ?>
                  <input type="button" value="完成该任务" class="button" onClick="go_to('/work/finishwork?id=<?=$datas['work_id']?>');" />
              <? } }?>
            </li>
       	</ul>
    </div> 
<include path="footer" /> 